//
//  CommonNet.h
//  Meets-ios
//
//  Created by liumingkong on 14-6-20.
//  Copyright (c) 2014年 meets. All rights reserved.
//

#define HTTP        @"http://"
#define HTTPS       @"https://"
#define HTTPS_PORT  @"443"

#define MICO_US_HOST    @"www.micous.com"

#define MICO_WEB_HOST   @"https://www.micous.com/mobile/vip"

#define NGINX_SERVER    @"www.meetsmiles.com"
#define FILE_SERVER     @"img.meetsmiles.com"

#define MICO_FEEDBACK_SEVER     @"console.micous.com"

#define NIO_SERV_IP     @"52.68.50.203"
#define NIO_SERV_PORT   8085

#define API_TAG      @"/api"
#define THEME_TAG    @"/theme"
#define ADMIN_TAG    @"/admin"

#define TERMS_OF_SERVICE @"http://www.micous.com/terms.html"
#define PRIVACY_POLICY   @"http://www.micous.com/privacy.html"

#define GIFTSEND_URL            @"/gift/send"
#define GIFTBOX_URL             @"/users/giftbox/open"
#define GIFTBOX_REFRESH_URL     @"/users/giftbox/refresh_v2"
#define GIFTBOX_OPEN_URL        @"/users/giftbox/open_v2"
#define PASTER_PACK_REPLENISH_JSON  @"/sticker-recommend.json"
#define PASTER_PACK_LIST_JSON   @"/sticker-list-v2.json"
#define PASTER_PACK_LIST_JSON3  @"/sticker-list-v3.json"
#define PASTER_PACK_URL         @"/sticker/"
#define FEEDBACK_PUB            @"/pub/"
#define FEEDBACK_URL            @"feedback/upload"

#define REVIEW_BUILD_REQ        @"/terms/review.json"
#define FAKE_NEARBY_USER        @"/terms/nearby_user.json"
#define FAKE_NEARBY_MOMENT      @"/terms/nearby_moment.json"

#define MANAGER_PREFIX          @"/terms/manager/"
#define STATIC_FIRST_LEVEL      @"/iOS/"

#define LAUNCHMODEL_SUFFIX      @"/launch_ios.json"
#define INTERSTITIAL_SUFFIX     @"/interstitial.json"

#define COINS_SUFFIX            @"/coins_ios.json"
#define VIP_SUFFIX              @"/payvip_ios.json"
#define GLOBAL_ROAMING_SUFFIX   @"/userroam.json"
#define DISCOVERY_SUFFIX        @"/discovery.json"

#define SHARE_URL               @"http://www.micous.com/get/mico"
#define QRCODE_URL_PREFIX       @"http://www.meetsmiles.com/mico?r="

#define Help_Center_Tail         @"/mobile/help/7"
#define Help_Center_Url         [NSString stringWithFormat:@"%@%@/%@%@", HTTPS, MICO_US_HOST, [LangUtils appLanguageInMicoFormat], Help_Center_Tail]


#define HTTP_HEADER_STAT_DID     @"did"
#define HTTP_HEADER_STAT_OS      @"os"
#define HTTP_HEADER_STAT_VERSION @"version"

#define HTTP_HEADER_NIO_DEVICE_TOKEN @"device_token"
#define HTTP_HEADER_NIO_NORMAL_TOKEN @"token"

#define HTTP_HEADER_AUTH_TOKEN      @"token"
#define HTTP_HEADER_AUTH_UID        @"uid"
#define HTTP_AUTH_NONCE             @"nonce"
#define HTTP_HEADER_AUTH_MD5        @"md5"
#define HTTP_HEADER_AUTH_SIGN       @"sign"
#define HTTP_HEADER_AUTH_LOCALE     @"locale"
#define HTTP_HEADER_AUTH_ENCRYPTION @"encryption"
#define HTTP_HEADER_AUTH_LANGUAGE   @"language"
#define HTTP_HEADER_KEY_TIMEZONE    @"timezone"

#ifdef DEBUG
#define kMCAPIBaseURLString @"sandbox.meetsmiles.com"
#define API_SERVER          @"sandbox.meetsmiles.com"
#else
#define kMCAPIBaseURLString @"api.meetsmiles.com"
#define API_SERVER          @"api.meetsmiles.com"
#endif

#define HTTP_FIELD_RESULT       @"result"
#define HTTP_FIELD_CONTENT      @"content"
#define HTTP_FIELD_TYPE         @"type"
#define HTTP_FIELD_USER         @"user"
#define HTTP_FIELD_SECRETKEY    @"secretKey"

#define HTTP_HEADER_FIELD_DEVICE_ID             @"did"
#define HTTP_HEADER_FIELD_OPERATION_SYSTEM      @"os"
#define HTTP_HEADER_FIELD_APP_VERSION           @"version"
#define HTTP_HEADER_FIELD_ENCRYPTION_VERSION    @"v"
#define HTTP_HEADER_FIELD_EXCHANGE_KEY_T        @"t"
#define HTTP_HEADER_FIELD_TIMEZONE              @"timezone"
#define HTTP_HEADER_FIELD_LOCALE                @"locale"
#define HTTP_HEADER_VALUE_ENCRYPTION_VERSION    @"1"
#define HTTP_HEADER_VALUE_EXCHANGE_KEY_IOS      @"3"

#define HTTP_FIELD_SESSION_ID                   @"sessionId"
#define HTTP_FIELD_ENCRYPTION_P                 @"p"
#define HTTP_FIELD_ENCRYPTION_G                 @"g"
#define HTTP_FIELD_ENCRYPTION_Y                 @"y"

// SignUp
#define HTTP_FIELD_EMAIL                        @"email"
#define HTTP_FIELD_DISPLAYNAME                  @"displayName"
#define HTTP_FIELD_GENDAR                       @"gendar"
#define HTTP_FIELD_BIRTHDAY                     @"birthday"
#define HTTP_FIELD_OID                          @"oid"
#define HTTP_FIELD_AVATAR                       @"avatar"

#define HTTP_FIELD_MICOID                       @"userId"


static NSString *const MICO_SCHEME = @"micoweb";

static NSString *const PATH_MOMENTS_ALL         = @"/moments/all";          // 动态三个页面列表
static NSString *const PATH_MOMENTS_POST        = @"/moments/post";         // 发动态页面
static NSString *const PATH_MOMENTS_ME          = @"/moments/me";           // 打开自己动态列表，不带UID
static NSString *const PATH_MOMENTS_USER        = @"/moments/user";         // 打开动态列表，带uid区分
static NSString *const PATH_MOMENTS_POST_CARD   = @"/moments/post/card";    // 发动态页面，带card
static NSString *const PATH_USER_FEATURE        = @"/user/feature";         // feature user页面
static NSString *const PATH_USER_FRESH          = @"/user/fresh";           // 新人榜页面
static NSString *const PATH_USER_VISITOR        = @"/user/visitor";         // 最近访客
static NSString *const PATH_USER_BASIC_EDIT     = @"/user/basic/edit";      // 用户的个人资料编辑页（编辑头像、个性签名的页面）
static NSString *const PATH_USER_PHOTOWALL_EDIT = @"/user/photowall/edit";  // 用户的头像墙编辑页（编辑头像墙）
static NSString *const PATH_USER_VERIFY_EDIT    = @"/user/verify/edit";     // 认证说明页
static NSString *const PATH_USER_TAG_EDIT       = @"/user/tag/edit";        // 标签编辑页面
static NSString *const PATH_USER_PROFILE        = @"/user/profile";         // 打开profile页面，带uid区分
static NSString *const PATH_USER_PROFILE_ME     = @"/user/profile/me";      // 打开自己的profile页面
static NSString *const PATH_ROAM_GLOBAL         = @"/roam/global";
static NSString *const PATH_VIP_CENTER          = @"/vip/center";           // vip中心
static NSString *const PATH_VIP_PAY             = @"/vip/pay";              // vip支付页面，通过uid来区分
static NSString *const PATH_VIP_PAY_ME          = @"/vip/pay/me";           // vip支付页面，给自己买
static NSString *const PATH_STICKER_CENTER      = @"/sticker/center";       // 表情中心页面
static NSString *const PATH_STICKER_SHOW        = @"/sticker/show";         // 表情中心页面，带表情的ID
static NSString *const PATH_FEEDBACK            = @"/setting/feedback";
static NSString *const PATH_ABOUT               = @"/setting/about";        // about

static NSString *const PATH_MID_FEATURE   = @"/mid/feature/user";
static NSString *const PATH_MID_JOIN_VIP  = @"/mid/joinVip";          // 中间页 加入VIP
static NSString *const PATH_MID_SEND_GIFT = @"/mid/sendGift";         // 中间页 赠送礼物
static NSString *const PATH_MICO_COIN     = @"/mico/coin";            // mico币购买
static NSString *const PATH_GIFT_CENTER   = @"/gift/center";          // 礼物中心
static NSString *const PATH_GIFT_ME       = @"/gift/me";              // 我的礼物
static NSString *const PATH_FB_INVITE     = @"/mid/facebookInvite";   // facebook邀请好友

